import request from '@/utils/request'

// 查询采购入库管理列表
export function listStoreorder(query) {
  return request({
    url: '/eims/storeorder/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库管理详细
export function getStoreorder(id) {
  return request({
    url: '/eims/storeorder/' + id,
    method: 'get'
  })
}

// 新增采购入库管理
export function addStoreorder(data) {
  return request({
    url: '/eims/storeorder',
    method: 'post',
    data: data
  })
}

// 修改采购入库管理
export function updateStoreorder(data) {
  return request({
    url: '/eims/storeorder',
    method: 'put',
    data: data
  })
}
export function shengHe(data) {
  return request({
    url: '/eims/storeorder/shenghe',
    method: 'put',
    data: data
  })
}

// 删除采购入库管理
export function delStoreorder(id) {
  return request({
    url: '/eims/storeorder/' + id,
    method: 'delete'
  })
}


export function getOrders(query) {
  return request({
    url: '/eims/order/list',
    method: 'get',
    params: query
  });
}
export function getWarehouseList() {
  return request({
    url: '/base/warehouse/list',
    method: 'get'
  })
}
